require 'genre.rb'

i = open('ename1.txt','r')
cname = ''
ename=''
o = open('genre.txt','w')
while(cname=i.readline.chop)
	ename = i.readline.chop
	g = genre ename
	o.print cname,':',ename,':',g.join(','),"\n"
end